
<%@ page import="fleet_management.Auction" %>
<!doctype html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'auction.label', default: 'Auction')}" />
		<title><g:message code="default.show.label" args="[entityName]" /></title>
	</head>
	<body>
		<a href="#show-auction" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<div class="nav" role="navigation">
			<ul>
				<li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
				<li><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></li>
				<li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
			</ul>
		</div>
		<div id="show-auction" class="content scaffold-show" role="main">
			<h1 style="margin-left:210px; width: 850px;">Auction Details</h1>
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<ol class="property-list auction">
			
				<g:if test="${auctionInstance?.vehicleNumber}">
				<li class="fieldcontain">
					<span id="vehicleNumber-label" class="property-label"><g:message code="auction.vehicleNumber.label" default="Vehicle Number" /></span>
					
						<span class="property-value" aria-labelledby="vehicleNumber-label"><g:fieldValue bean="${auctionInstance}" field="vehicleNumber"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${auctionInstance?.sellingCost}">
				<li class="fieldcontain">
					<span id="sellingCost-label" class="property-label"><g:message code="auction.sellingCost.label" default="Selling Cost" /></span>
					
						<span class="property-value" aria-labelledby="sellingCost-label"><g:fieldValue bean="${auctionInstance}" field="sellingCost"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${auctionInstance?.overallStatus}">
				<li class="fieldcontain">
					<span id="overallStatus-label" class="property-label"><g:message code="auction.overallStatus.label" default="Overall Status" /></span>
					
						<span class="property-value" aria-labelledby="overallStatus-label"><g:fieldValue bean="${auctionInstance}" field="overallStatus"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${auctionInstance?.soldCompanyName}">
				<li class="fieldcontain">
					<span id="soldCompanyName-label" class="property-label"><g:message code="auction.soldCompanyName.label" default="Sold Company Name" /></span>
					
						<span class="property-value" aria-labelledby="soldCompanyName-label"><g:fieldValue bean="${auctionInstance}" field="soldCompanyName"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${auctionInstance?.soldCompanyAddress}">
				<li class="fieldcontain">
					<span id="soldCompanyAddress-label" class="property-label"><g:message code="auction.soldCompanyAddress.label" default="Sold Company Address" /></span>
					
						<span class="property-value" aria-labelledby="soldCompanyAddress-label"><g:fieldValue bean="${auctionInstance}" field="soldCompanyAddress"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${auctionInstance?.partnerName}">
				<li class="fieldcontain">
					<span id="partnerName-label" class="property-label"><g:message code="auction.partnerName.label" default="Partner Name" /></span>
					
						<span class="property-value" aria-labelledby="partnerName-label"><g:fieldValue bean="${auctionInstance}" field="partnerName"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${auctionInstance?.partnerAddress}">
				<li class="fieldcontain">
					<span id="partnerAddress-label" class="property-label"><g:message code="auction.partnerAddress.label" default="Partner Address" /></span>
					
						<span class="property-value" aria-labelledby="partnerAddress-label"><g:fieldValue bean="${auctionInstance}" field="partnerAddress"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${auctionInstance?.purposeOfDonation}">
				<li class="fieldcontain">
					<span id="purposeOfDonation-label" class="property-label"><g:message code="auction.purposeOfDonation.label" default="Purpose Of Donation" /></span>
					
						<span class="property-value" aria-labelledby="purposeOfDonation-label"><g:fieldValue bean="${auctionInstance}" field="purposeOfDonation"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${auctionInstance?.auctionType}">
				<li class="fieldcontain">
					<span id="auctionType-label" class="property-label"><g:message code="auction.auctionType.label" default="Auction Type" /></span>
					
						<span class="property-value" aria-labelledby="auctionType-label"><g:fieldValue bean="${auctionInstance}" field="auctionType"/></span>
					
				</li>
				</g:if>
				
				<g:if test="${auctionInstance?.adminRole}">
				<li class="fieldcontain">
					<span id="adminRole-label" class="property-label"><g:message code="auction.adminRole.label" default="Region Admin" /></span>
					
						<span class="property-value" aria-labelledby="adminRole-label"><g:fieldValue bean="${auctionInstance}" field="adminRole"/></span>
				</li>
				</g:if>
			
			</ol>
			<g:form>
				<fieldset class="buttons">
					<g:hiddenField name="id" value="${auctionInstance?.id}" />
					<g:link class="edit" action="edit" id="${auctionInstance?.id}"><g:message code="default.button.edit.label" default="Edit" /></g:link>
					<g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
				</fieldset>
			</g:form>
		</div>
	</body>
</html>
